﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace WooCoo.DataPortal
{
    /// <summary>
    /// 做为客户端和服务端数据交互的传输对象.    
    /// </summary>
    [Serializable()]
    public class DataPortalResult
    {
        private object _returnObject;
        //private HybridDictionary _globalContext;

        /// <summary>
        /// 返回的请求结果封装体
        /// </summary>
        public object ReturnObject
        {
            get { return _returnObject; }
        }

        ///// <summary>
        ///// 服务端的全局对象        
        ///// </summary>
        //public HybridDictionary GlobalContext
        //{
        //    get { return _globalContext; }
        //}

        public DataPortalResult()
        {
            //_globalContext = ApplicationContext.ContextManager.GetGlobalContext();
        }

        public DataPortalResult(object returnObject)
        {
            _returnObject = returnObject;
            //_globalContext = ApplicationContext.ContextManager.GetGlobalContext();
        }

        //public DataPortalResult(object returnObject, HybridDictionary globalContext)
        //{
        //    _returnObject = returnObject;
        //    _globalContext = globalContext;
        //}
    }
}
